package dp;

import java.util.Arrays;

/**
 * @author : Rookie
 * @description :
 * @date : 2023/8/25
 */
public class Common {

    public static void print2dArr(int [][]arr) {
        for (int[] ints : arr) {
            for (int j = 0; j < arr[0].length; j++) {
                System.out.print(ints[j] + "\t");
            }
            System.out.println();
        }
    }

    public static void print1dArr(int[] arr) {
        System.out.println(Arrays.toString(arr));
    }

    public static void print3dArr(int[][][] arr) {
        for (int[][] ints : arr) {
            for (int[] anInt : ints) {
                for (int i : anInt) {
                    System.out.print(i + "\t");
                }
                System.out.println();
            }
            System.out.println();
        }
    }
}
